﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data; 

namespace SimpleInterestBiz
{
    class SaacScheduleHandler
    {
        public static DataTable SaacSheduler(SaacScheduleProperties propObj)
        {
            
            return SaacScheduleMethod.SaacSchedule(propObj);
        }



        /// <summary>
        /// 
        /// </summary>
        /// <param name="MonthlyFee"></param>
        /// <param name="LoanDate"></param>
        /// <param name="FirstReplacementDate"></param>
        /// <param name="LoanDuration"></param>
        /// <param name="EstablishmentCharges"></param>
        //public static Int32 NoOfRePayments(string Frequency,int MonthlyFee,DateTime LoanDate,DateTime FirstReplacementDate,int LoanDuration,int EstablishmentCharges)
        //{
        //    //=ROUNDUP(IF(C5="weekly",C28,IF(C5="fortnightly",C27,C26)),0)


        //    if (Frequency == "Weekly")
        //    {


        //    }
        //    else if (Frequency == "Monthly")
        //    {

        //    }
    
        //}
        private static int weekly(double LoanDuration,string Firstreapymentdate,string Loandate)
        {
            int _weekly = 0;

           // _weekly=LoanDuration-  
            //=(C10-(C9-C8-1)/7)

            return _weekly;

        }

    }
}
